var vm = new Vue({
    el: "#app",
    data: {
        user: "",
        pass: ""
    },
    methods: {
        login() {
            console.log(this.user, this.pass)//打印账户和密码
            //清空账户和密码
            this.user = "";
            this.pass = "";
        }
    }

})